﻿<UserControl x:Class="izmer_bizss.ParametersControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:models="clr-namespace:izmer_bizss"
             mc:Ignorable="d" 
             d:DataContext="{d:DesignInstance models:ParametersControl}"
             d:DesignHeight="134" Width="290" MinHeight="112" Initialized="ParametersControl_OnInitialized" FontFamily="Segoe UI">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="24"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Name="SatelliteLabel" VerticalAlignment="Center" Text="Satellites" Margin="5,0,0,0"/>

        <StackPanel Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" Orientation="Horizontal" Margin="0,0,0,0">
            <!--<TextBlock Name="SatelliteBoxA" Text="n" VerticalAlignment="Center" Margin="5,0,0,0"/>
            <TextBlock Text="/" VerticalAlignment="Center"/>
            <TextBlock Name="SatelliteBoxB" Text="m" VerticalAlignment="Center"/>-->
            <TextBlock Name="SatelliteBox" Text="" VerticalAlignment="Center" Margin="5,0,0,0"/>
            <TextBlock Name="QSignalBox" Margin="5,0,0,0" Text="" VerticalAlignment="Center"/>
        </StackPanel>

        <TextBlock Grid.Row="0" Grid.Column="2" Name="DateLabel" VerticalAlignment="Center" Text="Date/Time" Margin="5,0,0,0"/>
        <TextBlock Grid.Row="0" Grid.Column="3" Name="DateBox" VerticalAlignment="Center" Text="" Margin="5,5,5,4"/>

        <TextBlock Grid.Row="1" Grid.Column="0" Name="EtalonLabel" VerticalAlignment="Center" Text="Etalon" Margin="5,0,0,0"/>
        <TextBox Grid.Row="1" Grid.Column="1" Name="EtalonBox" VerticalAlignment="Center" Text="0,0" TextChanged="EtalonBox_OnTextChanged" Margin="5,0,0,0"/>

        <TextBlock Grid.Row="1" Grid.Column="2" Name="NormLabel" VerticalAlignment="Center" Text="Norm" Margin="5,0,0,0"/>
        <TextBox Grid.Row="1" Grid.Column="3" Name="NormBox" VerticalAlignment="Center" Text="0,0" Margin="5,0,5,0" TextChanged="NormBox_OnTextChanged"/>
        
        <TextBlock Grid.Row="2" Grid.Column="0" Name="DelayLabel" VerticalAlignment="Center" Text="Delay" Margin="5,0,0,0"/>
        <TextBlock Grid.Row="2" Grid.Column="1" Name="DelayBox" VerticalAlignment="Center" Text="0,0" Margin="5,0,5,0"/>

        <TextBlock Grid.Row="2" Grid.Column="2" Name="DiffLabel" VerticalAlignment="Center" Text="Diff" Margin="5,0,0,0"/>
        <TextBlock Grid.Row="2" Grid.Column="3" Name="DiffBox" VerticalAlignment="Center" Text="0,0" Margin="5,0,5,0"/>

        <Button Name="SetButton" Grid.Row="3" Grid.Column="0" Height="24" Width="90" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,5,0,5" Content="Set" Click="SetButton_OnClick"/>
        <Button Name="EditButton" Grid.Row="3" Grid.Column="2" Height="24" Width="90" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,5,0,5" Content="Edit" Click="EditButton_OnClick"/>
        
        <StatusBar Grid.Row="5" Grid.ColumnSpan="4" VerticalAlignment="Top">
            <StatusBarItem>
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                    <TextBlock Name="StatusLabel" Text="Status"/>
                    <TextBlock Text=": "/>
                    <TextBlock Name="StatusBox" Text="ok"/>
                </StackPanel>
            </StatusBarItem>
        </StatusBar>
        
    </Grid>
</UserControl>
